package com.yunmaozj.tools.lock.annotations;

import com.yunmaozj.tools.lock.interceptor.BusinessIdGenerator;
import com.yunmaozj.tools.lock.interceptor.DefaultBusinessIdGenerator;

import java.lang.annotation.*;

/**
 * @author 钟明宏
 * @version V1.0
 * @date 2021-08-20 11:07
 **/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface DistributedLock {

    Class<? extends BusinessIdGenerator> businessIdGenerator() default DefaultBusinessIdGenerator.class;
}
